package com.ys.entity.purchase;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_PurchaseAppointOrderItem", catalog="Id")
public class TcgPurchaseAppointOrderItem extends BaseEntity<TcgPurchaseAppointOrderItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="ProductName", nameJava="productName", typeDataBase="varchar")
	private String productName;
	@YsField(nameDataBase="CodeMerge", nameJava="codeMerge", typeDataBase="varchar")
	private String codeMerge;
	@YsField(nameDataBase="ReserveNumber", nameJava="reserveNumber", typeDataBase="int")
	private Integer reserveNumber;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgPurchaseAppointOrderItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TcgPurchaseAppointOrderItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public TcgPurchaseAppointOrderItem setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public String getProductName() {
		return productName;
	}
	public TcgPurchaseAppointOrderItem setProductName(String productName) {
		this.productName = productName;
		return this;
	}
	public String getCodeMerge() {
		return codeMerge;
	}
	public TcgPurchaseAppointOrderItem setCodeMerge(String codeMerge) {
		this.codeMerge = codeMerge;
		return this;
	}
	public Integer getReserveNumber() {
		return reserveNumber;
	}
	public TcgPurchaseAppointOrderItem setReserveNumber(Integer reserveNumber) {
		this.reserveNumber = reserveNumber;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgPurchaseAppointOrderItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgPurchaseAppointOrderItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgPurchaseAppointOrderItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgPurchaseAppointOrderItem tcgPurchaseAppointOrderItem(
		String pbid,
		String productCode,
		String productName,
		String codeMerge,
		Integer reserveNumber,
		Integer status
			) {
		TcgPurchaseAppointOrderItem entity = new TcgPurchaseAppointOrderItem();
		entity.setPbid(pbid);
		entity.setProductCode(productCode);
		entity.setProductName(productName);
		entity.setCodeMerge(codeMerge);
		entity.setReserveNumber(reserveNumber);
		entity.setStatus(status);
		return entity;
	}
}